const proxy = require("http-proxy-middleware");
module.exports= function(app){
    app.use(
        proxy('/AMAP',{
            target:"https://restapi.amap.com/",
            // target:"http://127.0.0.1:3000/",
            changeOrigin:true,
            pathRewrite:{
                "^/AMAP":''
            }
        })
    )
}